package io.virtualapp.home.adapters;


import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import io.virtualapp.R;
import io.virtualapp.bean.ImageBean;
import io.virtualapp.mylibrary.util.GlideLoadUtils;


/********************
 *  Created by ：  Zeoy 
 *         Date：  2018\5\16 0016.
 * Introduction：   图片选择编辑适配器
 *********************/

public class ImageSeeAdapter extends BaseQuickAdapter<ImageBean,BaseViewHolder> {

    public ImageSeeAdapter(@Nullable List<ImageBean> data) {
        super(R.layout.su_item_image_choose_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ImageBean item) {

        helper.setVisible(R.id.iv_del,false);
//        ImageLoader.getInstance().loadImage(mContext,helper.getView(R.id.iv),item.getPath()
//                ,R.mipmap.ic_launcher_foreground,R.mipmap.ic_launcher_foreground
//                ,false);
        GlideLoadUtils.getInstance().glideLoad(mContext,item.getPath(),helper.getView(R.id.iv), R.mipmap.ic_launcher);
    }
}
